import org.springframework.util.DigestUtils;

public class MD5test {
    //md5 加密测试
    public static void main(String[] args) {
        String pass="123456";
        String pass1= DigestUtils.md5DigestAsHex(pass.getBytes());
        System.out.println(pass1);
        System.out.println("fcea920f7412b5da7be0cf42b8c93759"==pass1);
    }
}
